Skip to content

Conversation

metcalf
Copy link
Contributor

@metcalf metcalf commented Oct 8, 2014

A TLS configuration must either have a ServerName or specify InsecureSkipVerify. In most cases, the ServerName value will match the host part of the address in the DSN. This change updates the DSN parser to default the ServerName to the host value provided unless InsecureSkipVerify is specified.

A TLS configuration must either have a ServerName or specify
InsecureSkipVerify. In most cases, the ServerName value will
match the host part of the address in the DSN. This change
updates the DSN parser to default the ServerName to the host
value provided unless InsecureSkipVerify is specified.
@julienschmidt
Copy link
Member

LGTM

julienschmidt added a commit that referenced this pull request Dec 10, 2014
Default TLS ServerName to the host in the DSN.
@julienschmidt julienschmidt merged commit cebeb35 into go-sql-driver:master Dec 10, 2014
@julienschmidt julienschmidt added this to the v1.3 milestone Dec 10, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants